package com.ledijiaoyu.autogate.base;

/**
 * Create with Android Studio
 * Author: chengpengfei
 * Date: 2018/5/21
 * Time: 8:00 PM
 * Description:闸机指令
 */
public final class AutoGateCommand {

    private AutoGateCommand(){}

    public static final String ON_LINE_TEST = "G05";            // 联机测试
    public static final String SYSTEM_INITIAL = "G00";          // 系统初始化
    public static final String FORCE_GATE_ALWAYS_OPEN = "G06";  // 强迫门常开
    public static final String FORCE_GATE_CLOSE = "G07";        // 强迫关门
    public static final String RETURN_NORMAL    = "G08";        // 恢复常态
    public static final String CALIBRATION_CLOCK    = "S20";    // 校准时钟
    public static final String READ_SYSTEM_CLOCK    = "G20";    // 读取系统时钟
    public static final String SET_GATE_OPEN_TIME = "S21";      // 设置开门时间段
    public static final String READ_GATE_OPEN_TIME = "G21";     // 读取开门时间段
    public static final String SET_GATE_OPEN_TIME_WEEK   = "S22";       // 设置某星期组中某星期别允许开门时间时段
    public static final String READ_GATE_OPEN_TIME_WEEK   = "G22";      // 读取某星期组中某星期别允许开门时间时段
    public static final String SET_HOLIDAY_TIME   = "S23";              // 设定假日时段
    public static final String READ_HOLIDAY_TIME   = "S23";             // 读取假日时段
    public static final String SET_CREDIT_CARD_KEYSTROKE   = "S30";     // 设置刷卡和按键功能
    public static final String SET_WHITE_LIST = "S33";                 // 设置白名单
    public static final String READ_GATE_MEMORY = "G42";              // 获取门禁内存信息
    public static final String RESPONSE_READ_GATE_MEMORY = "G4233";              // 获取门禁内存信息
    public static final String READ_EVENT_INFORMATION   = "G45";        // 读取一条事件信息
    public static final String RESPONSE_READ_EVENT_INFORMATION   = "G4528";        // 读取一条事件信息
    public static final String CLEAR_MACHINE_MEMORY = "G47";          // 清下位机内存
    public static final String READ_MAGNET_STATE   = "G77";             // 读取门磁状态
    public static final String SOFT_OPEN_COMMAND   = "S84";             // 软件开锁指令
    public static final String SET_MAGNET_DELAY_TIME = "S72";         // 设置门磁延时开锁时间
    public static final String READ_MAGNET_DELAY_TIME = "G72";        // 读取门磁延时开锁时间
    public static final String SET_REPORT_RELAY   = "S73";              // 报警继电器
    public static final String SAVE_ARGUS   = "S99";                    // 保存参数
}
